package com.example.demo.service;

import com.example.demo.entity.Log;
import com.example.demo.mapper.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService{
    @Autowired
    LogMapper logMapper;
    @Override
    public List<Log> getLogs() {
        return logMapper.getLogs();
    }
    @Override
    public int addLog(Log log) {
        return logMapper.addLog(log);
    }
}
